<?php
/**
 * ExtTreePanel class file
 *
 * @author TrueSoftware B.V. (The Netherlands)
 * @link http://www.ext4yii.com
 * @copyright Copyright 2007-2010 TrueSoftware B.V. all rights reserved.
 * @license http://www.ext4yii.com/license/
 *          EVALUATION VERSION - NOT FOR COMMERCIAL USE OR DISTRIBUTION.
 * @version 0.7.2
 */

class ExtTreePanel extends ExtTreePanelBase
{
    /**
     * Gets the value of ExtJS lines property
     * @return Boolean 
     */
    public function getLines()
    {
    	return $this->getConfig("lines");
    }

    /**
     * Sets the value of ExtJS lines property
     * @param Boolean $value 
     */
    public function setLines($value)
    {
    	$this->setConfig("lines",$value);
    }

    /**
     * Gets the value of ExtJS rootVisible property
     * @return Boolean 
     */
    public function getRootVisible()
    {
    	return $this->getConfig("rootvisible");
    }

    /**
     * Sets the value of ExtJS rootVisible property
     * @param Boolean $value 
     */
    public function setRootVisible($value)
    {
    	$this->setConfig("rootvisible",$value);
    }

    
    public function __construct()
    {
        parent::__construct();
        $this->configmap = array_merge($this->configmap,array(
            'rootvisible' => 'rootVisible'
        ));

        $this->eventtable = array_merge($this->eventtable,array(
            'append' => array('tree','parent','node','index'),
            'beforeappend' => array('tree','parent','node'),
            'beforechildrenrendered' => array('node'),
            'beforeclick' => array('node','e'),
            'beforecollapsenode' => array('node','deep','anim'),
            'beforedblclick' => array('node','e'),
            'beforeexpandnode' => array('node','deep','anim'),
            'beforeinsert' => array('tree','parent','node','refNode'),
            'beforeload' => array('node'),
            'beforemovenode' => array('tree','node','oldParent','newParent','index'),
            'beforenodedrop' => array('dropEvent'),
            'beforeremove' => array('tree','parent','node'),
            'checkchange' => array('sender','checked'),
            'click' => array('node','e'),
            'collapsenode' => array('node'),
            'containerclick' => array('sender','e'),
            'containercontextmenu' => array('sender','e'),
            'containerdblclick' => array('sender','e'),
            'contextmenu' => array('node','e'),
            'dblclick' => array('node','e'),
            'disabledchange' => array('node','disabled'),
            'dragdrop' => array('sender','node','dd','e'),
            'enddrag' => array('sender','node','e'),
            'expandnode' => array('node'),
            'insert' => array('tree','parent','node','refNode'),
            'load' => array('node'),
            'movenode' => array('tree','node','oldParent','newParent','index'),
            'nodedragover' => array('dragOverEvent'),
            'nodedrop' => array('dropEvent'),
            'remove' => array('tree','parent','node'),
            'startdrag' => array('sender','node','e'),
            'textchange' => array('node','text','oldText')
        ));


        $this->proptags = array_merge($this->proptags,array(
            'root' => true,
            'loader' => true,
            'containercontextmenu' => true
        ));
        $this->setXType('treepanel');
        $this->setXClass('Ext.tree.TreePanel');
    }    
}
?>